import com.sun.xml.internal.ws.api.ha.StickyFeature;

import java.util.Objects;

public class Test1 {
    public static void main(String[] args) {
       Student s1 = new Student("11");
       Student s2 = new Student("11");
        System.out.println(s1.hashCode());
        System.out.println(s2.hashCode());
    }
}
class Student{
    String name ;

    public Student(String name) {
        this.name = name;
    }

    @Override
    public int hashCode() {
        return Objects.hash(name);
    }
}
